﻿using Nemerle.Imperative;

using System;

class Initializer {
  public Name : string { get; set; }
  public event HelloHandler : Action[string];
  
  public SayHello() : void {
    HelloHandler($"Hello, $Name!");
  }
  
  public static Test() : void {
    def hellower = Initializer() with {
      Name = "David Hilbert";
      HelloHandler += Console.WriteLine;
    };
    hellower.SayHello();
  }
}